<!--
  Generated template for the PcCreaterEvaluatingPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>创建评测</ion-title>
  </ion-navbar>

</ion-header>

 
<ion-content padding>
  <div class="evalName">
    <p class="input-title">评测名称</p>
    <ion-input placeholder="请输入名称" class="content" [(ngModel)]='evalName' (keyup)="isEmoji($event)"></ion-input>
  </div>

  <div class="input-evalTime">
    <p class="input-title1">起始时间</p>
    <div ion-item="" class="input-width">
      <ion-datetime displayFormat="YYYY/MM/DD" placeholder="请输入时间" [min]="today | date:'yyyy-MM-dd'" max='2050' [(ngModel)]='startTime'
        class="input-evalTime-content" cancelText='取消' doneText='确定'></ion-datetime>
    </div>
  </div>

  <div class="input-evalTime">
    <p class="input-title1 bgurl">终止时间</p>
    <div ion-item="" class="input-width">
      <ion-datetime displayFormat="YYYY/MM/DD" placeholder="请输入时间" [min]="startTime" max='2050' [(ngModel)]='stopTime'
        class="input-evalTime-content" cancelText='取消' doneText='确定'></ion-datetime>
    </div>
  </div>
  
  <div class="eval-rule"> 
    <div class="rule-title">
      <p>评测项目 </p>
      <ion-icon name="tianjia" (click)="newItem()"></ion-icon>
    </div>

    <hr class="hrstyle">

    <div class="rule-itemName" *ngFor="let i of items;let id = index">
      <p>{{i.name}}</p>
      <div class="more"  (click)="newItem(id)">
        <span>分值{{i.value}}</span>
        <ion-icon name="gengduo"></ion-icon>
      </div>
    </div>

    <div class="rule-itemName input-margin">
      <p>评测总分规则</p>
      <div class="more" (click)="openTotal()"> 
        <span>高分差 {{ruleNnmber['alldiff']}} 排序分{{ruleNnmber['allsort']}}</span>
        <ion-icon name="gengduo" ></ion-icon>
      </div>
    </div>
  </div>

  <button ion-button="" block class="button" (click)="Submission()">完成</button>
</ion-content>
